package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@Document("userinfo_Attention")   //文档所在集合名字
public class UserInfoAttention implements Serializable {
    @Id
    private String id;  //spring - data 默认封装成 ObjectId

    private Long userId;    //用户id
    private Long beUserId;  //被关注的用户Id
    private String username;  //用户名
    private String headUrl;     //头像
    private Integer fanNum;//粉丝数
    private Integer state;//状态
    private List<Long> userlist = new ArrayList<>();  //关注用户id集合
    private List<Long> tralvelist = new ArrayList<>();  //收藏游记集合
}
